<style>
.tbl td,.tbl th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 20px;
color: rgb(0, 0, 0);
text-decoration: none;
word-break: break-all;
}
.blue {
color: blue;
}
.tbl a{
	text-decoration:none;
}
.red {
color: red;
}
.Main_List_Table {
border-left: 1px solid rgb(236, 236, 236);
border-top: 1px solid rgb(236, 236, 236);
}
.Main_List_Table_Tr1 {
background-color: rgb(246, 246, 246);
}
.Main_List_Table td {
border-right: 1px solid rgb(236, 236, 236);
border-bottom: 1px solid rgb(236, 236, 236);
padding: 2px;
text-align: center;
word-break: break-all;
}
.Main_List_Table_Tr1 td {
font-weight: bold;
}
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 20px;
color: rgb(0, 0, 0);
text-decoration: none;
word-break: break-all;
}
.other {
color: rgb(153, 153, 153);
}
.Main_List_Table td {
border-right: 1px solid rgb(236, 236, 236);
border-bottom: 1px solid rgb(236, 236, 236);
padding: 2px;
text-align: center;
}
.Main_List_Table_Tr_Over {
background-color: rgb(228, 242, 255);
}
</style>
<div class="bjui-pageContent">
    <table class="tbl" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#C9C9C9">
      <tbody>
        <tr>
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tbody>
                <tr>
                  <td width="1" bgcolor="#C9C9C9"></td>
                  <td valign="top"><div id="divExpInfo">
                      <table width="100%" border="0" cellspacing="0" cellpadding="10">
                        <tbody>
                          <tr>
						  	<if condition="$info.outbound_sn neq '' ">
                            <td> 
							  出库单号：<span>{$info.outbound_sn}</span><if condition="$info.status eq '8' ">(取消)</if><br />
							  发货时间：<span id="lbl_Exp_Time"></span><br>
                              快递公司：<span id="lbl_Sel_Exp_Name">{$info.express_name}</span><br>
                              快递单号：<span id="lbl_Exp_Num">{$info.courie_number}</span><br>
                              大头笔：<span id="lbl_ZtoJdDtb"></span><br />
							  如果要跟踪物流信息，请到<a href="{$expressInfo.website}" target="_blank">{$expressInfo.name}</a>官网查询或联系其公示电话
							  <if condition="$info.status  egt BINNING_SEND_OUT ">
                              <div <php>echo display(CONTROLLER_NAME.'/editExpress');</php> id="divShowExp" style="width: 350px;">
								<div style="float: left; padding-top: 10px;">
									<span id="lbl_Edit_Order_Exp">
										 <a href="javascript:;" onclick="$('#changeE').show();">如果单号有误，请修改快递单号！</a>
									</span>
								</div>	
							</div>
							</if>
							</td>
							<form action="{:U('editExpress')}" id="cancelOrderForm" class="pageForm" data-toggle="validate" data-callback="changeE">
							<table width="100%" border="0" cellspacing="0" cellpadding="3" id="changeE" style="display:none;float: left;">
								<tbody>
									<tr>
										<td width="100" class="red" valign="top">
                                            <div align="right"><b>提醒</b>：</div>
                                        </td>
										<td>
											<div class="blue">如果渠道商所选快递无法到达顾客地址，您可以选择其它快递。</div>
										</td>
									</tr>
									<tr>
										<td>
											<div align="right">
												<font class="red">*</font>快递公司：</div>
										</td>
										<td>
											<select name="express_id" data-toggle="selectpicker" data-rule="required">
											  <option value="">请选择快递</option>
											  <?php foreach($expressList as $express):?>
											  <option value="{$express.id}" <?php echo $info['express_id']==$express['id'] ? "selected='true'" : "";?>>{$express.name}</option>
											  <?php endforeach;?>
											</select>
										</td>
                                   </tr>
								   <tr>
								   		 <td>
											<div align="right"><font class="red">*</font>快递单号：</div>
										</td>
										<td>
											<input name="courie_number" type="text" value="{$info.courie_number}" maxlength="25" id="Exp_Num" style="width:200px;ime-mode: disabled;">
											<input type="hidden" name="order_id"  value="{$info.order_id}">
										</td>
								   </tr>
								   <tr>
								   		<td> <button type="submit" class="btn-blue" data-icon="save">保存</button></td>
										<td>
											<a  class="btn btn-default" onclick="$('#changeE').hide();" data-icon="close">取消</a>
										</td>
								   </tr>
								</tbody>
							</table>
                            </td>
							<else />
							<td>
								<font class="red"><b>提示</b>：</font> 该订单共：<font class="red"><span id="lblOrderProSum">{$info.order_goods_number}</span></font>个商品，订单商品金额合计： <font class="red">
										<span id="lbl_Order_Price">{$info.order_amount}</span></font> 元。
								
								<span id="lbl_No_Record"></span>
							</td>
							</if>
                          </tr>
                        </tbody>
                      </table>
					  </form>
                    </div></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
      </tbody>
    </table>
</div>
<script>
	function  changeE(res)
	{
		var result = res.statusCode;
		if(result == 200)
		{
			$("#changeE").hide();
			document.getElementById("lbl_Sel_Exp_Name").innerText = $.CurrentNavtab.find("select[name=express_id] option:selected").text();
			document.getElementById("lbl_Exp_Num").innerText = $("#Exp_Num").val();
		}
	}
</script>